const { BaseBehavior, COMPONENT_OPTIONS } = require('../../mixins/component');
const { PAGE_NAV } = require('../../constants/route');
const { navTo } = require('../../common/platform');

Component({
    behaviors: [BaseBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        roomId: {
            type: String,
            value: '',
        },
    },
    data: {

    },
    methods: {
        gotoLiveRoom() {
            const { roomId } = this.data;
            navTo(PAGE_NAV.liveRoom, {
                room_id: roomId,
            });
        },
    }
})
